#!/bin/bash

systemctl stop mysqld
rm -rf /etc/my.conf
rm -rf /etc/profile.d/mysql.sh
rm -rf /usr/local/mysql*
rm -rf /etc/systemd/system/mysqld.service
rm -rf /data/mysql
userdel mysql
reboot

